/*
 * @Des: 流程跟踪API
 * @Author: jin_yc
 * @Date: 2019-11-14 19:32:17
 * @LastEditor: jin_yc
 * @LastEditTime: 2021-05-12 19:08:08
 */
import request from '@/utils/request'


/**
 * @description: 表单查询API
 * @param {asignee} 处理人
 * @param {creator} 发起人姓名
 * @param {formName} 表单名称
 * @param {taskState} 表单状态 0流转中 1已完成
 * @param {taskSubject} 任务名称
 */
export function getCreateTask(data) {
  return request({
    method: 'get',
    url: '/sys-bpm/createTasks',
    params: {
      asignee: data.asignee || '',
      creator: data.creator || '',
      formName: data.formName || '',
      startDate: data.startDate || '',
      endDate: data.endDate || '',
      taskSubject: data.taskSubject || '',
      page: data.page || '',
      size: data.size || '',
      order: data.order || '',
      column: data.column || '',
    }
  })
}

export function taskUrge(taskId, notify) {
  return request({
    method: 'post',
    url: '/sys-bpm/process/urge',
    params: { taskId, notify }
  })
}